import java.util.Scanner;

public class  StringBuilder_03 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入字符串");
        String s = scanner.nextLine();
        String myreverse = myreverse(s);
        System.out.println(myreverse);
    }
        public  static String myreverse(String s){
            StringBuilder sb = new StringBuilder(s);
            sb.reverse();
            String ss = sb.toString();
            return ss;
        }
}
